#ifndef INPUTITEMDELEGATE_H
#define INPUTITEMDELEGATE_H

#include <QStyledItemDelegate>



class inputItemDelegate : public QStyledItemDelegate
{
public:
    inputItemDelegate(int col_port, QObject *parent=0);


    // QAbstractItemDelegate interface
public:
    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    void setEditorData(QWidget *editor, const QModelIndex &index) const;
    void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;

    void setPortList(QStringList ports);

private:
    int col_port;
    QStringList portlist;



};

#endif // INPUTITEMDELEGATE_H
